package com.ruoyi.contract.domain.contractVo;

import com.ruoyi.contract.domain.ContractProject;
import org.springframework.beans.BeanUtils;

import java.util.ArrayList;
import java.util.List;

public class ProjectAllContractVo {
    /** 项目 */
    private ContractProject contractProject;

    public ProjectAllContractVo(ContractProject contractProject) {
        this.contractProject = contractProject;
        BeanUtils.copyProperties(contractProject, this);  // 复制 contractProject 属性到当前对象
    }

    /** 项目对应所有进项合同 */
    private List<ContractAllPartyVo> incomeContractList = new ArrayList<>();

    /** 项目对应所有销项合同 */
    private List<ContractAllPartyVo> outputContractList = new ArrayList<>();

    // Getter for contractProject
    public ContractProject getContractProject() {
        return contractProject;
    }

    // Setter for contractProject
    public void setContractProject(ContractProject contractProject) {
        this.contractProject = contractProject;
    }

    // Getter for incomeContractList
    public List<ContractAllPartyVo> getIncomeContractList() {
        return incomeContractList;
    }

    // Setter for incomeContractList
    public void setIncomeContractList(List<ContractAllPartyVo> incomeContractList) {
        this.incomeContractList = incomeContractList;
    }

    // Getter for outputContractList
    public List<ContractAllPartyVo> getOutputContractList() {
        return outputContractList;
    }

    // Setter for outputContractList
    public void setOutputContractList(List<ContractAllPartyVo> outputContractList) {
        this.outputContractList = outputContractList;
    }
}
